package 位运算;

import java.util.Scanner;

public class 判断一个整数是不是二的整数次方 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int sum = 0;
        while (n!=0){
            n = n&(n-1);
            sum ++ ;
        }
        if (sum==1){
            System.out.println("true");
        }else {
            System.out.println("false");
        }
    }
}
